#!/bin/bash
if [ ! $( id -u ) -eq 0 ]
then
	echo "Please enter root's password."
	exec su -c ${0}
	exit
fi
abspath=$(cd ${0%/*} && echo $PWD/${0##*/})
path_only=`dirname "$abspath"`

mkdir -p /opt/Hydroxygen/
cp $path_only/*.py /opt/Hydroxygen/
cp $path_only/options.csv /opt/Hydroxygen/
cp -r $path_only/images/ /opt/Hydroxygen/
mkdir -p /usr/share/applications/
cp $path_only/Hydroxygen.desktop /usr/share/applications/
mkdir -p /usr/bin/
cp $path_only/hydroxygen /usr/bin/
